package com.example.springboot.exception;

/**
 * ClassName:ServiceException
 * Package:com.example.springboot.exception
 * Description:
 *
 * @Author: Gao
 * @Create: 2023/2/2 - 12:59
 */
public class ServiceException extends RuntimeException{
    private String code;

    public String getCode() {
        return code;
    }

    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(String code, String message) {
        super(message);
        this.code = code;
    }
}
